package com.bawei.rk_01.Adapter

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

class ImageLoad {

    companion object{

        @JvmStatic
        @BindingAdapter("img_url")
        fun loadImage(imageView: ImageView,url:String?){
            if (url!=null){
                Glide.with(imageView.context).load(url).into(imageView)
            }
        }

    }

}